<!-- Static navbar -->
<?php
require("front_view_header.php");
require_once (ROOTDIR."config/sys_config.php");
$RootPath = '../../'
?>

<!-- Static navbar -->
<nav class="navbar navbar-default col-lg-offset-1 col-lg-10 col-sm-12 col-xs-12" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?php echo SysConfig::$HP_URL?>"><?php echo SysConfig::$HP_NAME?></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li>
                    <a href="<?php echo SysConfig::$BLOG_URL?>"><?php echo SysConfig::$BLOG_NAME?></a>
                </li>
                <li>
                    <a href="<?php echo SysConfig::$HELP_URL?>"><?php echo SysConfig::$HELP_NAME?></a>
                </li>
                <li>
                    <a href="<?php echo $RootPath?>problemset.php">题目</a>
                </li>
                <li>
                    <a href="<?php echo $RootPath?>category.php">题目类别</a>
                </li>
                <li>
                    <a href="<?php echo $RootPath?>status.php">状态</a>
                </li>
                <li>
                    <a href="<?php echo $RootPath?>ranklist.php">排名</a>
                </li>
                <li>
                    <a href="<?php echo $RootPath?>index.php">统计</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span id="profile">登录</span>
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <script src="<?php echo $RootPath."template/bs3/profile.php?".rand();?>" ></script>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

